package com.google.precinct.client;

import com.google.gwt.user.client.Timer;
import com.google.gwt.user.client.ui.Label;

public class UIUtils {

	public static void error(final Label errorLabel, String message) {
		errorLabel.setText(message);
		(new Timer() {
			@Override
			public void run() {
				errorLabel.setText("");
			}
		}).schedule(8000);
	}

}
